package cloud.maque.auth.model;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

/**
 * 第三方Oauth2返回的内容
 * {"access_token":"29a06cc2d903a998e561fff087eb8a80","token_type":"bearer","expires_in":86400,"refresh_token":"cb129e55d92b4a5abc49fbc252d30ee292f282adfb72cb59c1dac6aa81b73a87","scope":"user_info","created_at":1733884184}
 */
@Data
public class Oauth2AccessTokenRes {

    @JSONField(name = "access_token")
    String accessToken;
    @JSONField(name = "token_type")
    String tokenType;

    @JSONField(name = "expires_in")
    Long expiresIn;
    @JSONField(name = "refresh_token")
    String refreshToken;
    String scope;
    @JSONField(name = "created_at")
    Long createdAt;
}
